package com.situ.conntroller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class HelloServlet extends HttpServlet{

	@Override
	protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		String page = req.getParameter("page");
		String limit = req.getParameter("limit");
		int p = Integer.parseInt(page);
		int l = Integer.parseInt(limit);
		int offset = (p - 1) * l;
	}
	
	public void test() {
		System.out.println("HelloServlet.test()");
		for (int i = 0; i < 100; i++) {
			System.out.println(i);
		}
	}
}
